package com.hwadee.ems.enums;

import com.fasterxml.jackson.annotation.JsonValue;

import com.baomidou.mybatisplus.annotation.EnumValue;

import lombok.Getter;

@Getter
public enum DayOfWeek {
    SUNDAY(0, "星期日"),
    MONDAY(1, "星期一"),
    TUESDAY(2, "星期二"),
    WEDNESDAY(3, "星期三"),
    THURSDAY(4, "星期四"),
    FRIDAY(5, "星期五"),
    SATURDAY(6, "星期六")
    ;

    @EnumValue
    private final int value;
    @JsonValue
    private final String description;

    DayOfWeek(int value, String description) {
        this.value = value;
        this.description = description;
    }
    
}
